import axios from '@/utils/request'
let store = 0
export default {
  OrderProductLimitation: {
    entity: {
      name: 'OrderProductLimitation', prefix: () => {
        store = localStorage.getItem('storeId')
        return `store/${store}`
      }
    },
    form: {
      fields: [
        'store',
        'product',
        'quantity',
        { property: 'enabled', default_value: true }
      ]
    },
    list: {
      list_display: [
        'id',
        'store',
        'product',
        'quantity'
      ]
    }
  }
}
